package com.imooc.rabbit.common.serializer;

/**
 * @description: 序列化和反序列化的接口
 * @author: Yz
 * @create: 2020-10-10 14:32
 **/
public interface Serializer {

    byte[] serialzeRaw(Object data);

    String serialze(Object data);

    <T> T deSerialze(String content);

    <T> T deSerialze(byte[] content);
}
